

cc.Class({
    extends: cc.Component,

    onLoad()
    {
        let node = this.node

        const s = cc.winSize

        const s1 = s.width / node.width
        const s2 = s.height / node.height

        node.scale = s1 > s2 ? s1 : s2
    }
})
